package com.app.happybirds;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class ReportList_Tab extends TabActivity {
	
	TabHost tabHost;
	TabSpec reportTabSpec;
	TabSpec mapTabSpec;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		tabHost = (TabHost) findViewById(android.R.id.tabhost);
		
		reportTabSpec = tabHost.newTabSpec("list").setIndicator("List",
                getResources().getDrawable(android.R.drawable.ic_menu_mapmode))
            .setContent(new Intent(this, Tab_ReportList.class));
		tabHost.addTab(reportTabSpec);
		
		mapTabSpec = tabHost.newTabSpec("map").setIndicator("Map",
                getResources().getDrawable(android.R.drawable.ic_menu_sort_by_size))
            .setContent(new Intent(this, Tab_ReportMap.class));
		tabHost.addTab(mapTabSpec);
		
		
	}
}
